package com.hrm.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页响应对象
 *      {
 *          "success"   : "成功",
 *          "code"      : 10000,
 *          "message"   : "ok",
 *          "data"      : {
 *              total: 总条数
 *              rows : 数据列表
 *          }
 *      }
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {
    private Long total;
    private List<T> rows;
}
